// 小程序商城管理模块路由
import MinaShop from '@/pages/mina-shop'
import MinaShopBanner from '@/pages/mina-shop/banner'
import MinaShopNotice from '@/pages/mina-shop/notice'
import MinaShopNav from '@/pages/mina-shop/nav'
import MinaShopAdvert from '@/pages/mina-shop/advertisement'
import MinaShopTheme from '@/pages/mina-shop/theme'
import MinaShopPostage from '@/pages/mina-shop/postage'
const minashopRoutes = {
  name: 'mina-shop',
  path: 'mina-shop',
  redirect: 'mina-shop/banner',
  component: MinaShop,
  meta: { // 规定的访问权限账号
    requiresRole: [1]
  },
  children: [{
      path: 'banner',
      component: MinaShopBanner
    },
    {
      path: 'notice',
      component: MinaShopNotice
    },
    {
      path: 'nav',
      component: MinaShopNav
    },
    {
      path: 'advertisement',
      component: MinaShopAdvert
    }, {
      path: 'theme',
      component: MinaShopTheme
    },
    {
      path: 'postage',
      component: MinaShopPostage
    }
  ]

}

export default minashopRoutes
